package com.input.password.ui;

import android.app.Activity;
import android.content.Intent;
import android.view.View;

import com.czy.owner.ui.setting.ForgetPaidPasswordActivity;
import com.czy.owner.widget.UniversalDialog;

/**
 * Created by wangyang on 2017/5/13 0013.
 * 支付密码错误对话框
 */

public class PaidErrorDialog {
    public static void paidPswErrorDialog(final Activity activity, final MyInputPwdUtil myInputPwdUtil) {
        new UniversalDialog(activity).builder()
                .setMsg("\n" + "支付密码不正确" + "\n")
                .setPositiveButton("重新输入", new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        myInputPwdUtil.show();

                    }
                }).setNegativeButton("忘记密码", new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                activity.startActivity(new Intent(activity, ForgetPaidPasswordActivity.class));
            }
        }).show();
    }

    public static void paid30AfterDialog(final Activity activity, final String exp) {
        new UniversalDialog(activity).builder()
                .setMsg("\n" + exp + "\n")
                .setPositiveButton("确定", new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {


                    }
                }).setNegativeButton("忘记密码", new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                activity.startActivity(new Intent(activity, ForgetPaidPasswordActivity.class));
            }
        }).show();
    }
}
